#include <iostream>
#include <wx/sizer.h>
#include <wx/statbmp.h>

#include "keycatcher.h"

#include "red.xpm"

BEGIN_EVENT_TABLE(KeyCatcher, wxWindow)
    EVT_KEY_DOWN(KeyCatcher::onKeyDown)
END_EVENT_TABLE()


KeyCatcher::KeyCatcher(wxWindow *iParent):
    wxWindow(iParent, wxID_ANY)
{
   
} /*     wxPanel(parent) */

void
KeyCatcher::onKeyDown(wxKeyEvent &evt)
{
    GetParent()->ProcessEvent(evt);
} /* MainFrame::onKeyDown(wxKeyEvent &evt) */

